#!/bin/bash        
if [ -d $1 ] then 
{ 
a="$1"
B=$(date +%m%s)
tar -czvfp ${B}.tar.gz "$a">>/home/fengjian/message.txt
echo "backup is successful!" 
}
else {echo "输入错误"}
fi;
